<form action="/docket/search/">
<p>Search:</p>
<table class="inputform">
    <tbody>
        <tr>
            <td>
                <input type="text" name="first_name" id="first_name" size="15" value="{{search_terms.first_name}}" />
                <br /><label for="first_name">First Name</label>                
            </td>
            <td>
                <input type="text" name="last_name" id="last_name" size="15" value="{{search_terms.last_name}}" />
                <br /><label for="last_name">Last Name</label>                
            </td>
        </tr>
        <tr>
            <td colspan="2">
                {% for t in search_types %}
                {% ifequal t search_type %}
                <input type="radio" name="search_type" value="{{t}}" checked="checked"> {{t|capfirst}}
                {% else %}
                <input type="radio" name="search_type" value="{{t}}"> {{t|capfirst}}
                {% endifequal %}
                <br/>
                {% endfor %}
            </td>
        </tr>
    </tbody>
</table>
    <input type="submit" name="search" value="Search" />
</form>

  {% if year %}
    <div><a href="{% url docket.browse.month year.year,1 %}">{{year|date:"Y"}}</a></div>
  {% endif %}
  {% for month in month_list %}
	<div><a href="{% url docket.browse.month year.year,month.month %}">{{ month|date:"M" }}</a></div>
  {% endfor %}

{% if previous_month or next_month %}
	<hr/>
	<div class="next_prev_links">
	<div class="yui-g">

	<div class="yui-u first">
{% if previous_month %}
	<a class="previous_link"
	   href="../../{{previous_month|date:"Y"}}/{{previous_month|date:"m"}}/">
	   &lt;&lt; {{previous_month|date:"M Y"}}
	</a>
{% else %}&nbsp;
{% endif %}
	</div>

	<div class="yui-u">
{% if next_month %}
	<a class="next_link"
	   href="../../{{next_month|date:"Y"}}/{{next_month|date:"m"}}/">
	{{next_month|date:"M Y"}} &gt;&gt;
	</a>
{% else %}&nbsp;
{% endif %}
	</div>
	
	</div>
	</div>
{% endif %}
